<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5, user-scalable=no" />
    <title>AngularJS & Bootstrap & UI-Router组件示例</title>
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/3.3.5/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="css/ng-animate.css" />
    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="bookmark" href="/favicon.ico"/>
</head>

<body ng-app="ngApp" ng-init="isSync = true">
    <nav class="appheader navbar navbar-default ">
    <div class="container">
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">ShowCase</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">
                ShowCase
            </a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="title" ng-class="{'active': isSync}"><a href="javascript:void(0);" ng-click="isSync = true">Sync</a></li>
                  <li class="title" ng-class="{'active': !isSync}"><a href="javascript:void(0);" ng-click="isSync = false">Async</a></li>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>

    <div class="container" style="margin-top:40px;">
    	<div class="jumbotron" ng-show="!isSync">
            <h1>异步</h1>
            <p>以异步方式加载示例组件。即当需要使用相关示例组件时，才异步请求组件的js文件下载到浏览器端。</p>
            <p><a class="btn btn-primary btn-lg" href="async/app/index.html" role="button">Show Me</a></p>
        </div>
        <div class="jumbotron" ng-show="isSync">
            <h1>同步</h1>
            <p>以同步方式加载示例组件。即一次性将所有示例组件的js文件下载到浏览器端。</p>
            <p><a class="btn btn-primary btn-lg" href="sync/app/index.html" role="button">Show Me</a></p>
        </div>
        </div>
        
    </div>
    <script type="text/javascript" src="lib/angularjs/1.4.6/angular.js"></script>
    <script type="text/javascript" src="lib/angularjs/1.4.6/angular-animate.min.js"></script>
    <script type="text/javascript" src="lib/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="lib/bootstrap/3.3.5/js/bootstrap.min.js"></script>

    <script type="text/javascript">
    	angular.module('ngApp', ['ngAnimate']);
    </script>
</body>

</html>
